﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example21.aspx.cs" Inherits="Chapter04.Example21" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 4-21 使用从另一相对单位推算出来的相对单位</title>
    <style>
        a.myclass1 {
            color: black;
        }

        a.myclass2 {
            color: white;
            background: grey;
        }

        html {
            font-size: 0.2in;
        }

        p {
            color: white;
            background: grey;
            font-size: 2rem;
            height: 2em;
        }
    </style>
</head>
<body>
    <form>
        <div>
            <a href="http://apress.com">Visit the Apress web site</a>
            <p>I like <span>apples</span> and oranges.</p>
            <a class="myclass1 myclass2" href="http://w3c.org">Visit the W3C web site</a>
        </div>
    </form>
</body>
</html>
